package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Hayson
 * @since 2021/7/5 23:44
 */
@Data
@TableName(value = "t_banner")
@Accessors(chain = true)
public class TBanner  implements Serializable {
    private static final long serialVersionUID = 4064687063614006402L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "推送code")
    @TableField(value = "shop_code")
    private String shopCode;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @TableField(value = "title")
    private String title;
    /**
     * 类型:1-活动,2-签到
     */
    @ApiModelProperty(value = "类型:1-活动,2-签到")
    @TableField(value = "type")
    private Integer type;

    @ApiModelProperty(value = "暂不用")
    @TableField(value = "`action`")
    private String action;

    /**
     * 广告链接
     */
    @ApiModelProperty(value = "广告链接")
    @TableField(value = "action_path")
    private String actionPath;

    @ApiModelProperty(value = "暂不用")
    @TableField(value = "html_url")
    private String htmlUrl;
    /**
     * 分享连接
     */
    @ApiModelProperty(value = "分享连接")
    @TableField(value = "share_url")
    private String shareUrl;
    /**
     * 分享描述
     */
    @ApiModelProperty(value = "分享描述")
    @TableField(value = "share_desc")
    private String shareDesc;
    /**
     * 图片路径
     */
    @ApiModelProperty(value = "图片路径")
    @TableField(value = "image_url")
    private String imageUrl;
    /**
     * 删除状态 0正常 1删除
     */
    @ApiModelProperty(value = "删除状态 0正常 1删除")
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time")
    private LocalDateTime updateTime;
    /**
     * 类型id
     */
    @ApiModelProperty(value = "类型id")
    @TableField(value = "category")
    private String category;
}